package cn.yanjr.system.dao;

import java.util.List;

import cn.yanjr.common.dao.BaseDao;
import cn.yanjr.system.entity.SysUser;

public interface SysUserDao extends BaseDao<String, SysUser> {
	
	public SysUser findOne(String userId);
	
	public int save(SysUser user);
	
	public int delUserRole(String userId);
	
	public List<SysUser> findByLoginName(String loginName);
	
	public List<SysUser> findByOfficeAndChild(String officeId);
	
	public List<SysUser> findByOffice(String officeId);
}
